from django.template import Library
from ..models import Carousel

register = Library()


@register.inclusion_tag('index/carousel.html')
def images():
    return {
        'carousels': Carousel.objects.all()
    }
